package site.codeyin.javautils.service;

import org.redisson.api.RLock;

/**
 * @author <a href="https://github.com/liangcheng2221">yinjie</a>
 * @date 2024-11-17 0:19
 */
public interface LockService {
    RLock lock(String key, long expireTime, long waitTime) throws Throwable;

    Boolean unlock(RLock lock);
}
